<template>
	<view>
		<uni-table stripe emptyText="暂无更多数据">
			<uni-tr>
				<uni-th width="48px">序号</uni-th><uni-th
					width="68px">缩略图</uni-th><uni-th>条码</uni-th><uni-th>货号</uni-th><uni-th>品名</uni-th><uni-th>结算价</uni-th><uni-th>指导价</uni-th><uni-th>会员价</uni-th>
				<uni-th>成交价</uni-th><uni-th>数量</uni-th><uni-th>商户</uni-th>
			</uni-tr>
			<uni-tr v-for="(item, index) in data" :key="index">
				<uni-td>{{index + 1}}</uni-td>
				<uni-td>
					<image :src="sConf.cos + item.ext_product.cover[0].url"
						style="width: 64px;height: 86px;border-radius: 5px;"></image>
				</uni-td>
				<uni-td>{{item.ext_product.idcode}}</uni-td>
				<uni-td>{{item.ext_product.sdcode}}</uni-td>
				<uni-td>{{item.ext_product.name}}</uni-td>
				<uni-td>{{(item.ext_product.cur_price/100).toFixed(2)}}</uni-td>
				<uni-td>{{(item.ext_product.price.money/100).toFixed(2)}}</uni-td>
				<uni-td>{{(item.ext_product.price.price/100).toFixed(2)}}</uni-td>
				<uni-td>{{(item.fpe/100).toFixed(2)}}</uni-td>
				<uni-td>{{item.num}}</uni-td>
				<uni-td>{{item.ext_product.pid_place.nicename}}</uni-td>
			</uni-tr>
		</uni-table>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				sConf: getApp().globalData,
			}
		},
		props: {
			data: {
				type: Array,
				default: []
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>

</style>